/* defining color variables */
:root {
	--salmon:#fb9f8a;
	--blurple:#4c42a2;
	--periwinkle:#8cabfe;
	--turquoise:#427ea2;
	--maroon:#a24268;
	--neobg:#ffce00;
}

.wht {
  color: white;
}

/* end color variables */


/* start font definitions (font-display works regardless of editor errors) */
@font-face {
  font-family: "fatfingerfont";
  src: url("/fonts/fatfingr.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "corpulentcapsfont";
  src: url("/fonts/ccaps.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "comichelveticfont";
  src: url("/fonts/ComicHelvetic_Light.otf") format("opentype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "opendyslexicfont";
  src: url("/fonts/OpenDyslexic-Regular.otf") format("opentype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "chelaonefont";
  src: url("/fonts/ChelaOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "heffaklumpfont";
  src: url("/fonts/Heffaklump.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}

/* end font definitions */

/* textarea */
label, textarea {
  font-size: 110%;
  letter-spacing: 1px;
}

label {
  display: block;
  font-family: opendyslexicfont, Tahoma;
  color: var(--salmon);
}

textarea {
  padding: 0.4em 0.8em;
  line-height: 1.5;
  border: 4px solid var(--periwinkle);
  border-radius: 4px;
  background-color: black;
  color: white;
}

/* end textarea */

/* button */

.button {
  background-color: var(--periwinkle);
  border: none;
  text-align: center;
  color: var(--blurple);
  text-decoration: none;
  font-family: fatfingerfont, Georgia;
  font-size: 110%;
  padding: 0.4em 0.8em;
  display: block;
  margin: auto;
  border-radius: 1em;
}

.button3 {
  background-color: var(--periwinkle);
  border: none;
  text-align: center;
  color: var(--blurple);
  text-decoration: none;
  font-family: fatfingerfont, Georgia;
  font-size: 110%;
  padding: 0.4em 0.8em;
  margin: auto;
  border-radius: 1em;
}

.button2 {
  background-color: var(--periwinkle);
  border: none;
  background-image: linear-gradient(rgba(251,159,138,1), rgba(222,153,239,1) 45%, rgba(222,153,239,0) 70%);
  text-align: center;
  color: var(--blurple);
  text-decoration: none;
  font-family: fatfingerfont, Georgia;
  font-size: 90%;
  padding: 0.4em 0.8em;
  display: block;
  margin: auto;
  border-radius: 1em;
}

.button4 {
  background-color: var(--periwinkle);
  border: none;
  background-image: linear-gradient(rgba(251,159,138,1), rgba(222,153,239,1) 45%, rgba(222,153,239,0) 70%);
  text-align: center;
  color: var(--blurple);
  text-decoration: none;
  font-family: fatfingerfont, Georgia;
  font-size: 110%;
  padding: 0.4em 0.8em;
  margin: auto;
  border-radius: 1em;
}

.button5 {
  background-color: white;
  border: 4px solid black;
  text-align: center;
  color: black;
  text-decoration: none;
  font-family: heffaklumpfont, Verdana;
  font-size: 90%;
  padding: 0.4em 0.8em;
  display: block;
  margin: auto;
  border-radius: 1em;
}

.button:hover, .button2:hover, .button3:hover, .button4:hover, .pagination button:hover {
  background-color: var(--salmon);
  color: var(--turquoise);
}

.button5:hover {
  background-color: #ffff66;
  color: blue;
}

/* end button */

body {  
  background-color: var(--blurple);
  background-image: linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0));
  background-size: cover;
  background-attachment: fixed;
}

body.ask2 {
  background-image: url("/assets/teeb peek.png"), linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0));;
  background-repeat: no-repeat;
  background-size: auto, cover;
  background-position: right bottom, center;
  background-attachment: fixed;
  background-color: var(--blurple);
}

body.ask {
  background-image: url("/assets/teeb peek.png"), linear-gradient(rgba(0,0,0,1), rgba(0,0,0,0));;
  background-repeat: no-repeat;
  background-size: auto, cover;
  background-position: right calc(100% - 7em), center;
  background-attachment: fixed;
  background-color: var(--blurple);
}

#askdiv {
  display: inline-block;
  margin-bottom: 7em;
}


.content h1 {
  color: var(--salmon);
  font-family: "corpulentcapsfont", Georgia;
  font-size: 300%;
  font-weight: normal;
}

.content h2 {
  color: var(--salmon);
  font-family: "chelaonefont", Georgia;
  font-size: 200%;
  font-weight: normal;
}

.content h3 {
  color: var(--salmon);
  font-family: "fatfingerfont", Georgia;
  font-size: 150%;
  font-weight: normal;
}

.content h4 {
  color: var(--periwinkle);
  font-family: "chelaonefont", Georgia;
  font-size: 200%;
  font-weight: normal;
}

/* start list stuff */

.content ol, .content ul {
  display: inline-block;
  text-align: left;  
  color: var(--periwinkle);
  font-family: "opendyslexicfont", Tahoma;
  font-size: 120%;
}

.content ol li, .content ul li {
  list-style-type: square;
  color: var(--periwinkle);
}

.content ol li::marker, .content ul li::marker {
  color: var(--salmon); /* bullet color */
}

/* end list stuff */

/* some ask stuff */

.askholder {
  padding: 1.5em 0em 0.7em;
  float: left;
  width: 100%;
}

section {
	background-color: rgba(0,0,0,.5);
  border-radius: 8px;
  padding: 0.3em 0.8em;
  float: left;
  width: 75%;
  display: grid;
}

.footer {
  text-align: center;
  justify-content: center;
  display: grid;
  grid-template-columns: auto auto auto auto auto auto;
  padding-top: 0.5em;
  padding-right: 0;
  padding-bottom: 1em;
  padding-left: 0;
}
#page-nav {
  padding-top: 1em;
  padding-right: 0;
  padding-bottom: 0.5em;
  padding-left: 0;
}

nav {
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(76,66,162,1) 50%, rgba(0,0,0,1) 100%);
  width: calc(100% - 208px);
  position: fixed;
  bottom: 0;
  right: 0;
  height: 7em;
}

/* end some ask stuff */

p {
  color: white;
  font-family: "comichelveticfont", Tahoma;
  font-size: 125%;
}

.right{
    float:right;
}

.left{
    float:left;
}

.ask1 {
	color: white;
	font-family: "opendyslexicfont", Tahoma;
	font-size: 1rem;
}

.ask2 {
	color: var(--salmon);
	font-family: "opendyslexicfont", Tahoma;
	font-size: 1rem;
}

.ask3 {
	color: var(--periwinkle);
	font-family: "comichelveticfont", Tahoma;
	font-size: 1.1rem;
}
.ask4 {
  color: white;
  font-family: "fatfingerfont", Georgia;
  font-size: 1.3rem;
  float: left;
} 
.ask5 {
  color: var(--periwinkle);
  font-family: "opendyslexicfont", Tahoma;
  font-size: 1rem;
}

/* start main lightbox stuff */

.container {
	display: flex;
	padding: 1rem 8%;
	justify-content: center;
}

.gallery {
	align-items: center;
	justify-content: center;
	text-align: center;
	display: flex;
	grid-template-columns: repeat(auto-fit, minmax(16rem, max-content));
	flex-wrap: wrap;
	grid-gap: 1rem;
}

.gallery img {
  border-radius: 6px;
  width: 16rem;
  height: 16rem;
  margin: 0 auto;
  object-fit: cover;
  object-position: 40%;
}

/* end main lightbox stuff */

/* comm lightbox stuff */

.container3 {
	display: flex;
	padding: 1rem 8%;
	align-items: center;
}

.gallery2 {
	display: flex;
	grid-template-columns: repeat(auto-fit, minmax(16rem, max-content));
	flex-wrap: wrap;
	grid-gap: 1rem;
}

.gallery2 img {
  float: right;
  border-radius: 6px;
  width: 10rem;
  height: auto;
  margin: 0 auto;
  margin-right: 20px;
  object-fit: cover;
  object-position: 40%;
}

.container3 ol, .container3 ul, .container3 p {
  padding-left: 20px;
}

/* thumbnails */

.container2 {
	display: flex;
	padding: 1rem 8%;
	justify-content: center;
}

.thumb, .thumb2 {
	align-items: center;
	justify-content: center;
	text-align: center;
	display: flex;
	grid-template-columns: repeat(auto-fit, minmax(8em, max-content));
	flex-wrap: wrap;
	grid-gap: 1rem;
}

.thumb img {
  border-radius: 6px;
  height: 8em;
  width: 8em;
  margin: 0 auto;
}

.thumb2 img {
  border-radius: 6px;
  height: auto;
  width: 100%;
  margin: 0 auto;
}

/* end thumbnails */

/* start link stuff */

.content a {
  font-size: 105%;
  text-decoration: underline;
  font-family: "opendyslexicfont", Tahoma;
}	

.content a:link {
  color: var(--maroon);
}

.content a:visited {
  color: var(--turquoise);
}

.content a:hover {
  font-size: 110%;
}

.content a:active {
  font-family: "opendyslexicfont", Tahoma;
}

/* end link stuff */

/* accordion bs */
input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.accordion {
  margin: 10px;
  border-radius: 5px;
}
.accordion-label {
  display: flex;
  justify-content: space-between;
  padding: 1em;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
}
.accordion-contents {
  max-height: 0;
  padding: 0 1em;
  transition: all 0.2s ease-out;
  overflow: hidden;
}
input:checked ~ .accordion-contents {
  max-height: 100%;
  padding: 1em;
}

/* end accordion */

/* ask images */
.askholder img {
  width: 50%;
  height: auto;
}

 /* The side navigation menu */
.sidebar, .sidebar1a {
  margin: 0;
  padding: 0;
  width: 200px;
  position: fixed;
  height: 100%;
  overflow: auto;
}

.sidebar, .sidebar2 {
  background-color: var(--periwinkle);
  background-image: linear-gradient(rgba(251,159,138,1), rgba(222,153,239,1) 45%, rgba(222,153,239,0) 70%);
  font-family: "fatfingerfont", Georgia;
  font-size: 140%;
}

.sidebar1a, .sidebar2b {
  background-color: var(--neobg);
  font-family: "heffaklumpfont", Verdana;
  font-size: 130%;
}

/* Sidebar links */
.sidebar a, .sidebar1a a, .sidebar2 a, .sidebar2b a {
  display: block;
  padding: 16px;
}

.sidebar1a a, .sidebar2b a {
  font-family: "heffaklumpfont", Verdana;
  color: black;
  text-decoration: none;
}

.sidebar1a a {
  text-align: center;
}

.sidebar a, .sidebar2 a {
  font-family: "fatfingerfont", Georgia;
  color: var(--maroon);
  text-decoration: underline;
}

/* Links on mouse-over */
.sidebar a:hover, .sidebar2 a:hover {
  background-color: var(--salmon);
  color: var(--turquoise);
  font-size: 105%;
}

.sidebar1a a:hover, .sidebar2b a:hover {
  color: blue;
  font-size: 105%;
}

.sidebar h1, .sidebar2 h1 {
  color: var(--blurple);
  font-family: "chelaonefont", Tahoma;
  font-size: 180%;
  text-align: center;
}

.sidebar1a h1, .sidebar2b h1 {
  color: black;
  font-family: "heffaklumpfont", Verdana;
  font-size: 160%;
  text-align: center;
}

.sidebar h2, .sidebar2 h2 {
  color: var(--blurple);
  font-family: "fatfingerfont", Tahoma;
  font-size: 125%;
  text-align: center;
}

.sidebar1a h2, .sidebar2b h2 {
  color: black;
  font-family: Verdana;
  font-size: 95%;
  text-align: center;
}

/* start sidebar list stuff */


.sidebar ol li, .sidebar ul li {
  list-style-type: none;
}

/* end list stuff */

/* mobile sidebar stuff */

.sidebar2, .sidebar2b {
  margin: 0;
  padding: 0;
  position: fixed;
  position: relative;
}
.sidebar2 #myLinks, .sidebar2b #myLinks {
  display: none;
}

.sidebar2 a, sidebar2b a {
  display: block;
  padding: 16px;
}

.sidebar2 a.icon, .sidebar2b a.icon {
    float: right;
 }
 
.buttonz {
  display: grid;
  padding: 1em;
  grid-template-columns: auto auto auto auto 1fr;
  justify-content: center;
}

.buttonz a:last-child {
  margin-left: auto;
}
 
 /* end mobile sidebar stuff */


/* Page content. The value of the margin-left property should match the value of the sidebar's width property */
.content {
  margin-left: 200px;
  padding: 1px 16px;
}

.content:not(.askholder) {
  text-align: center;
}


/* On screens that are less than 768px wide, make the sidebar into a topbar */
@media screen and (max-width: 768px) {
  .sidebar, .sidebar1a {
    width: 100%;
    height: auto;
    position: relative;
  }
  .sidebar a, .sidebar1a a {
    float: left;
  }
  .content {
    margin-left: 0;
  }
  .askholder {
    width: 100%;
  }
  .thumb2 img {
    width: 16em;
    height: auto; 
  }
  section {
    margin: 0 auto;
    width: 90%;
    text-align: center;
  }
  .accordion {
    text-align: center;
  }
  /* comm info */
  .container3 {
  	display: flex;
  	padding: 1rem 6%;
  	align-items: center;
  }
  .gallery2 {
  	display: flex;
  	grid-template-columns: repeat(auto-fit, minmax(8rem, max-content));
  	flex-wrap: wrap;
  	grid-gap: 1rem;
  }
  .gallery2 img {
    float: left;
    border-radius: 6px;
    width: 8rem;
    height: auto;
    margin: 0 auto;
    margin-right: 1rem;
    object-fit: cover;
    object-position: 20%;
  }
  .container3 ol, .container3 ul, .container3 p {
    padding-left: 1rem;
  }
  .askholder img {
  width: 90%;
  height: auto;
  }
  nav {
    width: 100%;
  }
}